<!DOCTYPE html>
<html lang="zh_CN">
<%- include("includes/header.ejs") %>

<body>
<div id="root" class="nb-app"></div>
<%- include("includes/script.ejs") %>
<script type="text/javascript">
    ;(function () {
        nbAmis.initAmis(
            '#root',
            {
                type: 'app',
                definitions: amisDefinitions,
                brandName: '<%=typeof name === "undefined" ? "Nebula App" : name.toUpperCase()%>',
                logo: '<%=typeof logo === "undefined" ? "" : logo%>',
                header: {
                    "type": "grid",
                    "className": "w-full h-full",
                    "columns": [
                        {
                            "columnClassName":"flex justify-start items-center",
                            "body": []
                        },
                        {
                            "columnClassName":"text-center",
                            "body": []
                        },
                        {
                            "columnClassName":"flex justify-end items-center",
                            "body": [
                                {
                                    "$ref": "messageButton"
                                },
                                // {
                                //     "type": "avatar",
                                //     "src": "https://suda.cdn.bcebos.com/images/amis/ai-fake-face.jpg",
                                //     "size": 28
                                // },
                                {
                                    "$ref": "profileDropdown"
                                }
                            ]
                        }
                    ]
                },
                // asideBefore 页面菜单上前面区域。
                // asideAfter 页面菜单下前面区域。
                // footer 页面
                api: 'cloud/app/app-menu/nav',
            }
        )
    })();

</script>
</body>
</html>
